package com.openscorer;

public class Int extends Scorable {
	public Int(String name, FormattingOptions foptions) {
		name_ = name;
		foptions_ = foptions;
	}
	public int num() { return value_; }
	
	// The following are for internal use only.
	public FormattingOptions getFOptions() { return foptions_; }
	public String getName() { return name_; }
	
	public void visit(ScorableVisitor v) {
		v.visitInt(this);
	}
	public Int deepCopy() {
		return new Int(name_, foptions_);
	}
	public void setValue(int value) {
		value_ = value;
	}
	String name_;
	FormattingOptions foptions_;
	int value_;
}
